package club.banyuan.inter.Animal;

/**
 * @author edz
 * @version 1.0
 * @date 2020/11/25 上午10:18
 */
public class Rabbit extends  Animal{
    private final String NAME="兔子";
    private String color;

    public Rabbit() {
    }

    public Rabbit(String color) {
        this.color = color;
    }
    public String getNAME() {
        return NAME;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void jump() {
        System.out.println("兔子跳的高");
    }

    @Override
    public void eat() {
        System.out.println("兔子是杂食");
    }
}
